﻿<%@ Page Title="GoldAir - Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="GoldAir._Default" %>
<%@ Import Namespace="System.Data"%>
<%@ Import Namespace="MySql.Data.MySqlClient"%>

<script runat="server">

    Sub Page_Load(sender As Object, e As EventArgs)
       
    End Sub


    </script>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    
    <style type="text/css">
        .style1
        {
            text-align: center;
            height: 46px;
            width: 238px;
        }
        .style2
        {
            height: 46px;
        }
        #btn
        {
            width: 44px;
        }
    </style>
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to GoldAir Airlines
    </h2>
   <div>
    
     <form name="Form1" action="SelectDepartingFlight.aspx" method="post">
     <input type="hidden" name="txtFlight1" id="txtFlight1" runat="server" />
     <input type="hidden" name="txtRoute" id="txtRoute" runat="server" />
     <input type="hidden" name="txtDepartureTime" id="txtDepartureTime" runat="server" />
     <input type="hidden" name="txtFlightTime" id="txtFlightTime" runat="server" />
     <input type="hidden" name="txtCost" id="txtCost" runat="server" />
     
     
         <table id="table1" class="booking" border="0">
                 <tr>
                    <th align="left" class="style2">Destination:</th>
                    <td class="style1">
                        <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="150px" ClientIDMode="Static">
                        </asp:DropDownList>
                    &nbsp;</td>
                
                </tr>
                <tr>
                    <th align="left">Date:</th>
                    <td class="style1">
                        <asp:TextBox ID="txtDepart" runat="server" Visible="false"></asp:TextBox>
                        <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                            BorderColor="#999999" CellPadding="0" 
                            DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                            ForeColor="Black" Height="11px" Width="37px" EnableViewState="False" 
                            BorderWidth="0px" EnableTheming="False">
                            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                            <NextPrevStyle VerticalAlign="Bottom" />
                            <OtherMonthDayStyle ForeColor="Gray" />
                            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                            <SelectorStyle BackColor="#CCCCCC" />
                            <TitleStyle BackColor="#999999" BorderColor="Black" 
                                Font-Bold="True" />
                            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <WeekendDayStyle BackColor="#FFFFCC" />
                        </asp:Calendar>
                        </td>
                        <td>
                        <asp:Table ID="Table2" runat="server" Width="529px" Height="377px">
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <strong>Brisbane</strong></asp:TableCell>
                                   <asp:TableCell>
                                        <strong>Sidney</strong></asp:TableCell>
                                    <asp:TableCell>
                                        <strong>Cairns</strong></asp:TableCell>
                                </asp:TableRow>
                               <asp:TableRow>
                
                                    <asp:TableCell><img alt='brisbanehome'  src="img/brisbanehome.png" /></asp:TableCell>
                                    <asp:TableCell><img alt='sidneyhome'    src="img/sidneyhome.png" /></asp:TableCell>
                                    <asp:TableCell><img alt='cairnshome'    src="img/cairnshome.png" /></asp:TableCell>
                                 </asp:TableRow>
                   
                        </asp:Table>
                        <asp:Table ID="Table3" runat="server" Visible=False CaptionAlign="Left" 
                                Width="541px" Height="25px" style="margin-top: 0px" >
                            <asp:TableRow>
                            <asp:TableCell>  <strong>Available Flights</strong></asp:TableCell>  
                            <asp:TableCell>
                            <asp:GridView ID="GridView1"   runat="server" Visible="False" CellPadding="4"   ForeColor="#333333" GridLines="None">
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                
                                    <Columns>
                                    <asp:CommandField ShowSelectButton="True" />
                                    </Columns>

                            </asp:GridView>
                           
                            </asp:TableCell>
                            </asp:TableRow>

                            <asp:TableRow>
                                <asp:TableCell>                                     
                                    <asp:Button ID="Button3" runat="server" Text="Continue"  />
                                </asp:TableCell>  
                            </asp:TableRow>

                        </asp:Table>
    
                    
                        </td>
               
                
                </tr>
                <tr>
                    <th align="left"></th>
                    <td class="style1">
                        <asp:Button ID="Button1" runat="server" Text="Search" UseSubmitBehavior="False"/>
                        &nbsp;</td>
                </tr>
             
            </table>
     </form>       
    <div>

        

</asp:Content>
